Unable to mount root fs over NFS [on hold]
Posted
by
johnmadrak
on Server Fault
See other posts from Server Fault
or by johnmadrak
Published on 2014-08-23T04:18:40Z
Indexed on
2014/08/23
4:21 UTC
Read the original article
Hit count: 266
I am attempting to set up a Raspberry Pi running Pidora to boot from an NFS share.
My configuration in cmdline.txt is:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/nfs nfsroot=<serverip>:/fake/path,nfsvers=3,rw,nolock nfsrootdebug ip=dhcp elevator=deadline rootwait
On the Pi, the output I see is:
IP-Config: Got DHCP answer from <router>, my address is <clientip>
IP-Config: Complete:
device=eth0, hwaddr=<macaddress>, ipaddr=<clientip>, mask=255.255.255.0, gw=<routerip>
host=<clientip>, domain=, nis-domain=(none)
bootserver=<routerip>, rootserver=<serverip>, rootpath=
nameserver0=<routerip>
(It pauses for a bit here)
VFS: Unable to mount root fs via NFS, trying floppy
VFS: Cannot open root device "nfs" or unknown-block(2,0); error -6
Please append a correct "root=" boot option; here are the available partitions:
.....
On the NFS Server (an OpenVZ Container), the output I see in the /var/log/messages is:
Aug 22 23:24:01 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:783 for /fake/path (/fake/path)
Aug 22 23:24:38 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:741 for /fake/path (/fake/path)
Aug 22 23:25:25 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:752 for /fake/path (/fake/path)
Aug 22 23:26:12 vps-4178 rpc.mountd[928]: authenticated mount request from <clientip>:876 for /fake/path (/fake/path)
To test, I've made sure I can mount (non-root) from both the Pi and another machine and it worked.
Does anyone have an idea on what could be wrong or how to narrow it down?
Thank you in advanced for your help.
© Server Fault or respective owner